import request from "@/utils/request";
import {downloadByTaskId} from "@/utils/request";

export const downPage = (param) => {
  return request({
    url: "/ths-data-agent/download/downPage",
    method: "post",
    data: param,
    headers: { "Content-Type": "application/json" },
  });
};

export function downExcel(taskId,filename) {
  return downloadByTaskId( "/ths-data-agent/download/downExcel?taskId="+taskId,filename);
}
